package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.iceservergift.IceServerGiftMallRecord;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;

public class IceServerGiftBusiness {
    public static List<IceServerGiftMallRecord> getMallRecordsByUserId(int activityId, long userId) {
        return DaoHelper.getIceServerGiftMallRecordDaoImpl().getMallRecordsByUserId(activityId, userId);
    }

    public static List<IceServerGiftMallRecord> getMallRecordsByType(int activityId, int type) {
        return DaoHelper.getIceServerGiftMallRecordDaoImpl().getMallRecordsByType(activityId, type);
    }

    public static boolean addMallRecord(IceServerGiftMallRecord activityMallRecord) {
        return DaoHelper.getIceServerGiftMallRecordDaoImpl().add(activityMallRecord);
    }

    public static boolean updateMallRecord(IceServerGiftMallRecord activityMallRecord) {
        return DaoHelper.getIceServerGiftMallRecordDaoImpl().update(activityMallRecord);
    }
}
